#include <QCoreApplication>
#include <QTimer>

#include "mainclass.h"

int main(int argc, char *argv[]) {
    QCoreApplication* application = new QCoreApplication(argc, argv);

    MainClass* main = new MainClass(application);
    main->connect(main, SIGNAL(finished()), application, SLOT(quit()));
    QTimer::singleShot(0, main, SLOT(run()));

    return application->exec();
}
